<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title></title>
		<link rel="stylesheet" href="assets/css/core.css" />
		<link rel="stylesheet" href="assets/css/menu.css" />
		<link rel="stylesheet" href="assets/css/amazeui.css" />
		<link rel="stylesheet" href="assets/css/page/form.css" />
		<style type="text/css">
			.safe-tips {
				margin-bottom: 20px;
				background-color: #0e90d2;
				font-size: 14px;
				padding: 10px 0px;
				letter-spacing: 3px;
				box-sizing: border-box;
				position: fixed;
				top: 0;
				width: 100%;
				text-align: center;
				color: white;
			}
			
			.yanzhengma {
				display: flex;
				justify-content: space-between;
			}
			
			.yanzhengma input {
				width: 200px !important;
			}
			
			.yanzhengma img {
				width: 100px;
			}
		</style>
		<script src="../include/js/jquery/jquery.js" language="javascript" type="text/javascript"></script>
		<script type="text/javascript">
			$ = jQuery;

			function changeAuthCode() {
				var num = new Date().getTime();
				var rand = Math.round(Math.random() * 10000);
				num = num + rand;
				$('#ver_code').css('visibility', 'visible');
				if($("#vdimgck")[0]) {
					$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
				}
				return false;
			}
		</script>
	</head>

	<body>
		<?php echo $redmsg; ?>
		<div class="account-pages">
			<div class="wrapper-page">
				<div class="text-center">
					<a class="logo"><span>网站内容管理系统</span></a>
				</div>

				<div class="m-t-40 card-box">
					<div class="text-center">
						<h4 class="text-uppercase font-bold m-b-0">登陆</h4>
					</div>
					<div class="panel-body">
						<form class="am-form" name="form1" method="post" action="login.php">
							<input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo RemoveXSS($gotopage);?>" />
							<input type="hidden" name="dopost" value="login" />
							<input name='adminstyle' type='hidden' value='newdedecms' />
							<div class="am-g">
								<div class="am-form-group">
									<input type="text" name="userid" class="am-radius" placeholder="用户名">
								</div>

								<div class="am-form-group form-horizontal m-t-20">
									<input type="password" class="am-radius" placeholder="密码" name="pwd">
								</div>

								<div class="am-form-group yanzhengma ">
									<?php
        	if(preg_match("/6/",$safe_gdopen))
        	{
        ?>
										<input placeholder="验证码" id="vdcode" type="text" name="validate" style="text-transform:uppercase;" /><img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清？点击更换" src="../include/vdimgck.php" />

										<?php
       		}
		?>
								</div>

								<div class="am-form-group ">
									<button class="am-btn am-btn-primary am-radius" style="width: 100%;height: 100%;" type="submit" name="sm1" class="login-btn" onclick="this.form.submit();">登录</button>
								</div>

								<div class="am-form-group ">
									<a href="page-recoverpw.html" class="text-muted"><i class="fa fa-lock m-r-5"></i>忘记密码</a>
								</div>
							</div>

						</form>

					</div>
				</div>
			</div>
		</div>
	</body>

</html>